//
//  ApiMacro.h
//  AIDoctor
//
//  Created by Kelly xu on 2018/12/21.
//  Copyright © 2018 mac. All rights reserved.
//

#ifndef ApiMacro_h
#define ApiMacro_h
#define Host @"http://123.56.10.155:8099"
#define Url(__url) [NSString stringWithFormat:@"%@%@",Host,__url]
#pragma mark - 用户登录
#define REGISTER Url(@"/app/user/register")
#define LOGIN Url(@"/app/user/login")
#define USERINFO Url(@"/app/user/detail")
#define UPDATE_USERINFO Url(@"/app/user/update")
#define MYDEVICE_LIST Url(@"/app/user/device/list")
#define FAVLIST Url(@"/app/user/like/list")
#define REPORTLIST Url(@"/app/user/report/list")
#define SYSTYPE Url(@"/sys/type")
#define SYSDIC Url(@"/sys/dict")

#define ATICLELIST Url(@"/web/article/list")
#define ARTICLEDETAIL Url(@"/web/article/detail")
#define BANNERLIST Url(@"/web/banner/list")
//添加收藏
#define ARTICLE_ADDFAV Url(@"/app/user/like/add")
#define ARTICLE_DELFAV Url(@"/app/user/like/delete")
//点赞
#define ARTICLE_ADDLIKE Url(@"/web/article/addTop")
#define ARTICLE_DELLIKE Url(@"/web/article/deleteTop")

#define UPLOADIMG Url(@"/file/upload")
#define ImgHost @"http://140.143.242.103:8090/image"

//设备绑定
#define DEVICE_BIND Url(@"/app/user/bind")
//设备解绑
#define DEVICE_UNBIND Url(@"/app/user/unBind")
//消息列表
#define MSG_LIST Url(@"/app/user/message/list")
//设备信息
#define DEVICE_DETAIL Url(@"/app/user/device/info")
//操控设备
#define OPTION_DEVICE Url(@"/app/user/device/option")
//获取设备最后一次使用时间
#define DEVICE_LAST_USETIME Url(@"/app/user/last")
//获取设备剩余的运行时间
#define DEVICE_REMAIN_TIME Url(@"/app/user/time")
//历程列表
#define MY_COURSE_LIST Url(@"/app/user/date")
//历程图片
#define MY_COURSE_IMGS Url(@"/app/user/date/image")
//获取用户使用列表
#define USER_USELIST Url(@"/app/user/date/list")
//添加本次用户使用感受
#define USER_USE_ADD Url(@"/app/user/use/add")
//添加报告
#define ADD_REPORT Url(@"/app/user/report/add")
//忘记密码接口
#define FOGOT_PWD Url(@"/app/user/find/password")
//修改密码接口
#define EDIT_PWD Url(@"/app/user/changepassword")
//发送短信接口
#define SEND_SMS Url(@"/message/valid")
#endif /* ApiMacro_h */
